package com.mud.dnd.frontend.rs.common;

import com.mud.dnd.domain.common.QueryParameter.QueryParamOperator;

public class RestInputConverter {

	
	public static QueryParamOperator queryParamOperatorConverter(String input)
	{
		
		QueryParamOperator operator = null;
		
		if(input==null)
		{
			input="";
		}
		

		if(input.equals("more"))
		{
			operator= QueryParamOperator.MORE;
		}
		else if(input.equals("less"))
		{
			operator= QueryParamOperator.LESS;
		}
		else if(input.equals("equals"))
		{
			operator= QueryParamOperator.EQUALS;
		}else
		{
			operator= QueryParamOperator.EQUALS;
		}
		
		return operator;
	}
}
